package com.xw.qxypt.modules.entity;

import lombok.Data;

import java.net.Socket;
import java.util.Date;
import java.util.HashMap;

@Data
public class DataCollection<LhpEquipmentEntity> {

	private String pointId;

	private String equipmentId;

	private Socket socket;
	/**传感器名称*/
	private String sensorName;
	/**地理坐标*/
	private String geoCoordinate;
	//传感器编号
	private String sensorNo=null;
	//传感器类型
	private String sensorType=null;
	
	private HashMap<String,LhpEquipmentEntity> equipmentMap = new HashMap<String,LhpEquipmentEntity>();
	
	//时间戳
	private Date date;
	//掉线状态
	private String status;
	
	private Boolean canInsert = false;
	
	private LhpDataRoadDetectorEntity lhpDataRoadDetectorEntity;

	private LhpDataVisibilityEntity lhpDataVisibilityEntity;

	private LhpDataWeatherStationEntity lhpDataWeatherStationEntity;
	
	public DataCollection() {
		super();
	}
	
	public DataCollection(String pointId, String sensorNo) {
		super();
		this.pointId = pointId;
		this.sensorNo = sensorNo;
	}
	
	public DataCollection(String pointId, String equipmentId, String sensorNo, String sensorType) {
		super();
		this.pointId = pointId;
		this.equipmentId = equipmentId;
		this.sensorNo = sensorNo;
		this.sensorType = sensorType;
	}

}
